package top.songxs.gmall.feign.product.fallback;

import lombok.extern.slf4j.Slf4j;
import top.songxs.gmall.common.result.Result;
import top.songxs.gmall.common.result.ResultCodeEnum;
import top.songxs.gmall.feign.product.SpuSaleAttrAndValueClient;
import top.songxs.gmall.product.entity.SpuSaleAttr;

import java.util.List;

@Slf4j
public class SpuSaleAttrAndValueClientFallback implements SpuSaleAttrAndValueClient {
    @Override
    public Result<List<SpuSaleAttr>> findSpuSalAttrAndValueBySkuId(Long skuId) {
        log.error("findSpuSalAttrAndValueBySkuId 兜底方案执行了");
        return Result.build(null, ResultCodeEnum.SUCCESS);
    }
}
